home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4881 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Fastest way to computer log(base2) of x?
  5. Date: Wed, 07 Feb 96 14:00:59 GMT
  6. Organization: none
  7. Message-ID: <823701659snz@genesis.demon.co.uk>
  8. References: <4e61iu$p6e@villa.fc.net> <4e72il$dvl@ns.RezoNet.NET> <4f647p$lc5@druid.borland.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4f647p$lc5@druid.borland.com> pete@borland.com "Pete Becker" writes:
  15.  
  16. ...
  17.  
  18. >Still faster: use a table with INT_MAX entries and remove all of the 
  19. >conditionals. Why do the responses here assume that sacrificing speed for 
  20. >space savings is appropriate? The question asks for the fastest, not something 
  21. >that's reasonably fast but doesn't use much space.
  22.  
  23. While it may not have been an explicitly stated requirement I'd certainly
  24. favour a solution that was strictly conforming i.e. could be run on any
  25. standard C implementation.
  26.  
  27. -- 
  28. -----------------------------------------
  29. Lawrence Kirby | fred@genesis.demon.co.uk
  30. Wilts, England | 70734.126@compuserve.com
  31. -----------------------------------------
  32.